﻿@model Inventory.Domain.Models.Movie

@{
    ViewBag.Title = "AddNew";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>AddNew</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Movie</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.IMDbId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IMDbId)
            @Html.ValidationMessageFor(model => model.IMDbId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RtId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RtId)
            @Html.ValidationMessageFor(model => model.RtId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MovieRatingId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MovieRatingId)
            @Html.ValidationMessageFor(model => model.MovieRatingId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Runtime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Runtime)
            @Html.ValidationMessageFor(model => model.Runtime)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SynopsisLong)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SynopsisLong)
            @Html.ValidationMessageFor(model => model.SynopsisLong)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SynopsisShort)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SynopsisShort)
            @Html.ValidationMessageFor(model => model.SynopsisShort)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlotOutline)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlotOutline)
            @Html.ValidationMessageFor(model => model.PlotOutline)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Comments)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Comments)
            @Html.ValidationMessageFor(model => model.Comments)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.InternetUrl)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.InternetUrl)
            @Html.ValidationMessageFor(model => model.InternetUrl)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserRating)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserRating)
            @Html.ValidationMessageFor(model => model.UserRating)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MyRating)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MyRating)
            @Html.ValidationMessageFor(model => model.MyRating)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ReleaseYear)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ReleaseYear)
            @Html.ValidationMessageFor(model => model.ReleaseYear)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Poster)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Poster)
            @Html.ValidationMessageFor(model => model.Poster)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PosterThumb)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PosterThumb)
            @Html.ValidationMessageFor(model => model.PosterThumb)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
